package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.StaffInfoDao;
import io.wdb.modules.generator.generator.entity.StaffInfoEntity;
import io.wdb.modules.generator.generator.service.StaffInfoService;



@Service("staffInfoService")
public class StaffInfoServiceImpl implements StaffInfoService {
	@Autowired
	private StaffInfoDao staffInfoDao;
	
	@Override
	public StaffInfoEntity queryObject(Long id){
		return staffInfoDao.queryObject(id);
	}
	
	@Override
	public List<StaffInfoEntity> queryList(Map<String, Object> map){
		return staffInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return staffInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(StaffInfoEntity staffInfo){
		staffInfoDao.save(staffInfo);
	}
	
	@Override
	public void update(StaffInfoEntity staffInfo){
		staffInfoDao.update(staffInfo);
	}
	
	@Override
	public void delete(Long id){
		staffInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		staffInfoDao.deleteBatch(ids);
	}
	
}
